<template>
  <div id="app">
    <audio ref="backgroundMusic" src="./assets/BEYOND - 无助.mp3" autoplay loop></audio>
    <router-view/>
  </div>
</template>
<script>
export default {
  data(){
    return{

    }
  },
  mounted(){
    // const audio = this.$refs.backgroundMusic;
    //   if (audio) {
    //     audio.play();
    //   }
    const audio=this.$refs.backgroundMusic;
    if(audio){
      audio.play()
    }
  }
}
</script>
<style>
html{
  width: 100%;
  height: 100%;
}

body{
  width: 100%;
  height: 100%;
  margin: 0px !important;
  padding: 0px !important;
}
#app{
  width: 100%;
  height: 100%;
}
</style>
